<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>人员查询</title>
    <meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="resources/font-awesome-4.7.0/css/font-awesome.min.css">
	<link rel="stylesheet" href="resources/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="resources/common/css/htmleaf-demo.css">
	<script src="resources/common/jquery/jquery-3.2.1.min.js"></script>
	<script src="resources/bootstrap/js/bootstrap.min.js"></script>
	<script src="resources/toastr/js/toastr.js"></script>
	<link rel="stylesheet" href="resources/toastr/css/toastr.css">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <div class="col-md-6 col-md-offset-3">
	<form class="form-horizontal" role="form" action="user/selectusers.do" method="get">
		<div class="form-group">
		    <label for="uname" class="col-md-2 control-label">用户名</label>
		    <div class="col-md-4">
		      <input type="text" class="form-control" id="uname" name="uname" placeholder="用户名"
		      data-toggle="tooltip" data-placement="top" title="支持数字、26个英文字母或者下划线" />
		    </div>
		    <label for="name" class="col-md-2 control-label">姓名</label>
		    <div class="col-md-4">
		      <input type="text" class="form-control" id="name" name="name" placeholder="姓名">
		    </div>
		  </div>
		 
		<div class="form-group">
		    <label for="addr" class="col-md-2 control-label">所属机构</label>
		    <div class="col-md-3">
		      <select id="agencyid" name="agency.id" class="form-control" >
		     	 <c:forEach items="${agencys}" var="agency">
		     	 <option value="${agency.id }">${agency.name }</option>
		     	 </c:forEach>
		      </select>
		    </div>
		    <label for="roleid" class="col-md-2 control-label">角色</label>
		    <div class="col-md-3">
		      <select id="roleid" name="role.id" class="form-control" >
		     	 <c:forEach items="${roles}" var="role">
		     	 <option value="${role.id }">${role.roleName }</option>
		     	 </c:forEach>
		      </select>
		  </div>
		  <div class="form-group">
		  	<div class="col-md-3 col-md-offset-4">
		      <button type="submit" class="btn btn-default"  id="select">查询</button>
		    </div>
		  </div>
	</form>
</div>
  </body>
</html>
